<style>
    .ordetable{

        border-collapse: collapse;
        font-family: "Trebuchet MS", Arial, sans-serif;
        color: #555;
        font-size: 80%; !important
    }

    .ordetable  th {
        text-align: center;
        background: #E6EDF5;
        color: #4F76A3;
        font-size: 100% !important;
    }
    .ordetable  td {
        border-bottom: 1px solid #E6EDF5;
    }

    .ordetable .label{
        font-weight: bold;
    }
    .ordetable tbody tr:hover {background: #fafafa;}
</style>
<table width="100%" class="ordetable">
    <tr>
        <th>
            PartNum
        </th>
        <th>
            Description
        </th>
        <th>
            Quantity
        </th>
        <th>
            Unit Price
        </th>
        <th>
            Total Ptice
        </th>

    </tr>

    {{foreach from=$order->order_item_m_order->get() item=i}}
    <tr>
        <td>
            {{$i->part_num}}
        </td>
        <td>            
            {{$i->short_desc}}
        </td>
        <td align="right">            
            {{$i->qty|string_format:"%.0f"}}
        </td>
        <td align="right">
            ${{$i->unit_price|string_format:"%.2f"}}
        </td>
        <td align="right">
            ${{$i->price_x_qty()|string_format:"%.2f"}}
        </td>
    </tr>
    {{/foreach}}
    {{assign var=shipping_info value=$order->DYN_order_shipping_charge_obj}}
    <tr>
        <td colspan="5" style="text-align: left;color: #003399;font-size: 16px" >
            <strong>Shipping</strong>
        </td>

    </tr>
    <tr>
        
        <td align="right" colspan="4">
            {{$shipping_info->description}}
            {{if $shipping_info->rate_note<>""}}
                ({{$shipping_info->rate_note}})
            {{/if}}
        </td>
        <td style="text-align: right">
            ${{$shipping_info->shipping_cost}}
        </td>
    </tr>
    <tr>
        <td colspan="5" style="text-align: left;color: #003399;font-size: 16px" >
            <strong>Tax</strong>
        </td>

    </tr>
    {{assign var=order_taxes value=$order->DYN_grouped_taxes}}
    {{foreach from=$tax_classes item=class}}
    {{assign var=index value=$class->id}}
    <tr>
        <td colspan="4" style="text-align: right;color: #86888C" >
            {{$class->class_name}}
        </td>
        <td align="right" style="color: #86888C">
            ${{$order_taxes.$index|string_format:"%.2f"}}
        </td>
    </tr>
    {{/foreach}}
    <tr>
        <td colspan="5" style="text-align: left;color: #003399;font-size: 16px" >
            <strong>Total</strong>
        </td>

    </tr>
    
    <tr>

        <td colspan="5" align="right" style="color: #003399;font-size: 16px">
            <strong>${{$order->DYN_order_total|string_format:"%.2f"}}</strong>
        </td>
    </tr>

</table>